@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './comm.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, .85);
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 10px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.el-dialog {
  border-radius: 4px;
  overflow: hidden;
}

.el-dialog__header {
  padding: 12px 24px 12px 20px !important;
  color: rgba(0, 0, 0, .65);
  border-bottom: 1px solid #e9e9e9;
}

.el-dialog__title {
  font-size: 15px;
}

.el-dialog__footer {
  background-color: #fafafa;
  border-top: 1px solid #e9e9e9;
  padding: 10px 16px;
}

.el-form-item__label {
  font-size: 14px;
  font-weight: normal;
}

.el-message-box__status.el-icon-warning-outline {
  color: #ffba00;
}

.el-message-box__content {
  padding-bottom: 20px;
  // font-size: 16px;
}

.el-tooltip__popper {
  font-size: 14px;
  line-height: 22px;
}

.f14btn {
  padding: 8px 15px !important;
}

.el-button--primary.is-plain,
.el-button--primary.is-plain:hover {
  background-color: #fff;
  border-color: #3b74ff;
  color: #3b74ff;
}

.el-button--primary.is-plain.is-disabled,
.el-button--primary.is-plain.is-disabled:hover,
.el-button.is-disabled.is-plain,
.el-button.is-disabled.is-plain:hover {
  color: rgba(0, 0, 0, .25);
  border-color: #e9e9e9;
  background: #f5f5f5;
}

.commtable {
  border: 0;

  th.el-table__cell.is-leaf {
    border-bottom: 0;
  }

  th {
    background-color: #f5f5f5;
    color: #2f333c !important;
    font-size: 14px !important;
  }

  .el-table__cell {
    border: 0;
  }
}

// 抽屉
.el-drawer__header {
  padding: 16px 24px;
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 0;
  font-size: 16px;
  color: rgba(0, 0, 0, .85);
}

.el-button--small {
  padding: 8px 15px;
  font-size: 14px;
}

.el-button--text.el-button--small {
  padding-left: 0;
  padding-right: 0
}

.pageheader {
  width: 100%;
  height: 46px;
  position: sticky;
  top: 0;
  z-index: 8;
  height: 46px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
}

.pagewrapper2 {
  height: calc(100vh - 48px - 46px);
}

.el-tooltip__popper.is-light {
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);

  .popper__arrow {
    // box-shadow: 3px 3px 7px rgba(0,0,0,.07);
    // border-color: ;
    border-color: transparent !important;
  }
}


.el-tag.el-tag--info{
  background: #fafafa;
  border: 1px solid #e9e9e9;
  padding: 2px 7px;
  height: auto;
}